﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DBHelperModel;
using MyDAL;
using MyEntity;

namespace MyBLL
{
    public class StudentInfoBLL
    {
        StudentInfoDAl dal = new StudentInfoDAl();
        //新增专业
        public int Add(StudentInfoEntity pro)
        {
            return dal.Add(pro);
        }


        //删除
        public int Delete(string StuId)
        {
            return dal.Delete(StuId);
        }

        //修改
        public int Update(StudentInfoEntity pro)
        {
            return dal.Update(pro);
        }
        //列表

        public List<StudentInfoEntity> List()
        {

            return dal.List();
        }


        //详情
        public StudentInfoEntity Detail(int ID)
        {
            return dal.Detail(ID);
        }

        //搜索
        //public List<StudentInfoEntity> Search(StudentInfoEntity stu)
        //{
        //    return dal.Search(stu);
        //}
        public List<StudentInfoEntity> Search(StudentInfoEntity stu)
        {
            return dal.Search(stu);
        }
    }
}
